/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package clases;


import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 *
 * @author Pato
 */
public class Cambiar{
    public static void cambiarIcono(JFrame form, String rutaIcono){
        form.setIconImage (new ImageIcon(form.getClass().getResource(rutaIcono)).getImage());
    }

    public static void cambiarIconoLabel(JLabel lbl, String rutaIcono){
        lbl.setIcon(new javax.swing.ImageIcon(lbl.getClass().getResource(rutaIcono)));
    }
}
